package com.fishery.base.service.client;

import com.fishery.base.handler.ProcessingFallback;
import com.fishery.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "fishery-processing-service", fallback = ProcessingFallback.class)
public interface ProcessingFactoryClient {

	@GetMapping("/processingFactory/factory/typeFactory/{type}")
	public Result searchFactoryByType(@PathVariable(name = "type") String type);

}
